home *** CD-ROM | disk | FTP | other *** search
/ NOVA - For the NeXT Workstation / NOVA - For the NeXT Workstation.iso / Documents / NeXTAnswers / misc.367 < prev    next >
Text File  |  1992-02-06  |  590b  |  23 lines

  1. indent decrement negative assignment
  2.  
  3. Q: Is there a bug in indent?
  4.  
  5. A: Yes.  The old C specification permitted =- as a decrement operator; the current
  6. specification does not, and specifies that -= is the decrement operator.  It appears
  7. that indent(1) was written during the "transition" period; it (silently!) converts
  8. =- to -=.  Note that this will only occur if there's no white space between the = and
  9. the -.
  10.  
  11. Example:
  12.  
  13.     ok = -1;    /* This won't get messed up */
  14.     bad=-1;        /* This WILL get messed up; indent will convert to bad -= 1; */
  15.  
  16.  
  17. QA367
  18.     
  19. Valid for 1.0 
  20. Not checked yet for 2.0 
  21.  
  22.  
  23.